<!doctype html>
<html>
  <head>
    <title>MathML fallback</title>
    <meta charset="utf-8"/>
    <!-- This test passes if the appropriate fallback content is displayed and the display attribute is taken into account. -->
  </head>
  <body>

    <!-- No fallback is given so the formula should render without any formatting other than the one specified by the display attribute. -->
    <p>
      <math>
        <mfrac>
          <mn>2</mn>
          <mi>x</mi>
        </mfrac>
      </math>
      <math display="block">
        <mfrac>
          <mn>2</mn>
          <mi>x</mi>
        </mfrac>
      </math>
    </p>

    <!-- The TeX annotation should be displayed. -->
    <p>
      <math>
        <semantics>
          <mfrac>
            <mn>2</mn>
            <mi>x</mi>
          </mfrac>
          <annotation encoding="TeX">\frac{2}{x}</annotation>
        </semantics>
      </math>
      <math display="block">
        <semantics>
          <mfrac>
            <mn>2</mn>
            <mi>x</mi>
          </mfrac>
          <annotation encoding="TeX">\frac{2}{x}</annotation>
        </semantics>
      </math>
    </p>

    <!-- The MathML-Presentation annotation (containing an image) should be displayed. -->
    <p>
      <math>
        <semantics>
          <mfrac>
            <mn>2</mn>
            <mi>x</mi>
          </mfrac>
          <annotation-xml encoding="MathML-Presentation"><mtext><img src="" alt="2/x"/></mtext></annotation-xml>
        </semantics>
      </math>
      <math display="block">
        <semantics>
          <mfrac>
            <mn>2</mn>
            <mi>x</mi>
          </mfrac>
          <annotation-xml encoding="MathML-Presentation"><mtext><img src="" alt="2/x"/></mtext></annotation-xml>
        </semantics>
      </math>
    </p>

  </body>
</html>
